package com.pivotal.cloud.boot.constant;

/**
 * @className: com.pivotal.cloud.boot.constant.Tokens
 * @projectName: PivotalCloud项目
 * @module: PivotalCloud项目-Tokens类，主要位于Boot模块-Tokens相关业务常量模块
 * @content: Tokens-Tokens相关业务常量
 * @author: Powered by Marklin
 * @datetime: 2025-10-14 19:20
 * @version: 1.0.0
 * @copyright: Copyright © 2018-2025 PivotalCloud Systems Incorporated. All rights
 * reserved.
 */
public interface Tokens {

	/**
	 * JWT请求头
	 */
	String JWT_HEADER = "JwtToken ";

	/**
	 * Bearer 请求头
	 */
	String BEARER_HEADER = "Bearer ";

	/**
	 * 身份Token令牌
	 */
	String IDENTITY_TOKEN = "identity_token";

	/**
	 * 访问Token令牌
	 */
	String ACCESS_TOKEN = "access_token";

	/**
	 * 刷新Token令牌
	 */
	String REFRESH_TOKEN = "refresh_token";

	/**
	 * JWT格式Token
	 */
	String JWT_TOKEN = "jwt_token";

	/**
	 * Token请求头参数
	 */
	String AUTHORIZATION = "Authorization";

	/**
	 * 授权用户上下文信息
	 */
	String AUTH_USER_CONTEXT = "auth:user:context:";

	/**
	 * 授权用户Token信息
	 */
	String AUTH_USER_TOKEN = "auth:user:token:";

	/**
	 * 授权用户Token缓存时间
	 */
	long AUTH_TOKEN_EXPIRE = 60 * 60 * 24 * 5L;

}
